home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d897.lha / EPP / PModules / skipToChar.e < prev    next >
Text File  |  1993-06-26  |  296b  |  16 lines

  1. OPT TURBO
  2.  
  3. PROC skipToChar (char, theString, pos)
  4.   DEF length
  5.  
  6.   /* Finds the specified character in theString and returns its position. */
  7.  
  8.   length := StrLen (theString)
  9.   WHILE pos < length
  10.     IF theString [pos] = char THEN RETURN pos
  11.     INC pos
  12.   ENDWHILE
  13. ENDPROC  pos
  14.   /* skipToChar */
  15.  
  16.